﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ErrorLista.aspx.cs" Inherits="Gui.Web.Listado.ErrorLista" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="container">
        <div class="row">
            <div class="area-top clearfix">
                <div class="pull-left header">
                    <h3 class="title">
                        <i class="icon-dashboard"></i>Colaborador
                    </h3>
                    <h5>
                        <span>Informaci&oacute;n de los Errores </span>
                    </h5>
                </div>
            </div>
        </div>
    </div>
    <div class="container padded">
        <div class="row">
            <div class="col-md-12">
                <button type="submit" class="btn btn-blue" id="NuevoColaborador" runat="server" onserverclick="NuevoError_Click">
                    <i class="icon-user"></i>&nbsp;&nbsp;Nuevo Error</button>
                <br />
                <br />
                <div class="box">
                    <div class="box-header">
                        <span class="title">Listado de Errores</span>
                    </div>
                    <div class="box-content">
                        <asp:GridView ID="ListadoErrores" class="table table-bordered table-striped responsive"
                            runat="server" AutoGenerateColumns="False" DataKeyNames="IdError" OnRowCommand="ListadoErrores_RowCommand">
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="Editar" class="btn btn-xs btn-default" runat="server" Text="Editar"
                                            CommandName="Editar" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                        <asp:LinkButton ID="Eliminar" class="btn btn-xs btn-red" runat="server" Text="Activar / Desactivar"
                                            CommandName="Eliminar" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="IdError" HeaderText="IdError" Visible="False" />
                                <asp:BoundField DataField="NombreError" HeaderText="Error" />
                                <asp:TemplateField HeaderText="Estado">
                                    <ItemTemplate>
                                        <%# Eval("TextoEstado")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
